<template>
  <div class="app">
    <nav>
      <router-link to="/">首页</router-link> |
      <router-link to="/about">关于</router-link>
    </nav>
    <router-view></router-view>
  </div>
</template>

<style scoped>
.app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  font-family: Arial, sans-serif;
}

nav {
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

nav a {
  margin: 0 1rem;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: #42b883;
}

nav a.router-link-active {
  color: #42b883;
  font-weight: bold;
}
</style> 